<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%
	// リクエスト文字列のエンコードを設定
	request.setCharacterEncoding("UTF-8");
	// パラメータの取得
	String name = (String)request.getAttribute("name");
	String ruby = (String)request.getAttribute("ruby");
	String levelStr = (String)request.getAttribute("level");
	String level = null;
	if("0".equals(levelStr)) {
		level = "担当者";
	} else if("1".equals(levelStr)) {
		level = "上位管理者";
	}
	String password = (String)request.getAttribute("password");
%>
<jsp:include page="/share/layout.jsp">
    <jsp:param name="title" value="新規担当者登録確認"/>
    <jsp:param name="css" value="manager.css"/>
    <jsp:param name="content">
        <jsp:attribute name="value">
<!-- contents start -->
<form id="mng_form" action="WriteServlet" method="post">
	<table class="form_table">
		<tr>
			<th>担当者名</th>
			<td><%= name %></td>
		</tr>
		<tr>
			<th>フリガナ</th>
			<td><%= ruby %></td>
		</tr>
		<tr>
			<th>種別</th>
			<td><%= level %></td>
		</tr>
		<tr>
			<th>パスワード</th>
			<td><%= password %></td>
		</tr>
	</table>

	<input type="hidden" name="name" value="<%= name %>" />
	<input type="hidden" name="ruby" value="<%= ruby %>" />
	<input type="hidden" name="level" value="<%= levelStr %>" />
	<input type="hidden" name="password" value="<%= password %>" />


	<div id="msg_area">以上の内容で登録しますか？</div>

	<div id="btn_area">
	<input class="button" type="button" value="戻る" onClick="self.history.back()">
	<input class="button" type="submit" value="登録" />
	</div>
</form>
<!-- contents end -->
        </jsp:attribute>
    </jsp:param>
</jsp:include>